package com.qfedu.mbti.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * mbti测试题表(MbtiQuestion)表实体类
 *
 * @author makejava
 * @since 2024-11-04 11:43:41
 */
@Data
@NoArgsConstructor
@TableName("t_mbti_question")
public class MbtiQuestion extends Model<MbtiQuestion> {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //考试ID
    private Integer meid;
    //问题
    private String question;
    //选型a
    private String optiona;
    //选型b
    private String optionb;
    //答案a对应的编码
    private String answera;
    //答案b对应的编码
    private String answerb;
    //回答的结果
    private String answer;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    public MbtiQuestion(Integer meid, String question, String optiona, String optionb, String answera, String answerb) {
        this.meid = meid;
        this.question = question;
        this.optiona = optiona;
        this.optionb = optionb;
        this.answera = answera;
        this.answerb = answerb;
        this.createTime=new Date();
        this.updateTime=new Date();
    }
}